// import Cookies from 'js-cookie'

// const Token = 'Token'
// export function getToken () {
//   return Cookies.get(Token)
// }

// export function setToken (token) {
//   return Cookies.set(Token, token)
// }

// export function removeToken () {
//   return Cookies.remove(Token)
// }

const key = 'geek-itheima'

// 设置
export const setToken = (token) => {
  localStorage.setItem(key, token)
}

// 获取
export const getToken = () => localStorage.getItem(key)

// 删除
export const removeToken = () => {
  localStorage.removeItem(key)
}
